import { http } from "@/utils/http";
import type { PageResponse } from "@/types";
import type { MyHumanInfoData, TimbreInfoData } from "@/api/MyHuman";

/** 获取数字人列表 */
export function getMyHumanInfoList(
  data?: object
): Promise<PageResponse<MyHumanInfoData>> {
  return http.request({
    url: "/digitalHuman/getHumanInfoList",
    method: "post",
    data
  });
}
/** 获取音色列表 */
export function getNoFailTimbreInfoList(
  data?: object
): Promise<PageResponse<TimbreInfoData>> {
  return http.request({
    url: "/digitalHuman/getTimbreInfoList",
    method: "post",
    data
  });
}
